
CONFIG(debug){
    target.path = $$OUT_PWD/../libs

    langfiles.path = $$OUT_PWD/../lang
    langfiles.files = $$(PWD)lang/*.qm

    conffiles.path = $$OUT_PWD/../conf
    conffiles.files = $$(PWD)conf/*.xml

    INSTALLS += target langfiles conffiles
} else:CONFIG(release) {
    target.path = $$OUT_PWD/../libs

    langfiles.path = $$OUT_PWD/../lang
    langfiles.files = $$(PWD)lang/*.qm

    conffiles.path = $$OUT_PWD/../conf
    conffiles.files = $$(PWD)conf/*.xml

    INSTALLS += target langfiles conffiles
}

copy_header.commands = $(COPY_DIR) $$PWD/$$TARGET/*.h $$OUT_PWD/../include/$$TARGET
win32 {
    copy_header.commands ~= s,/,\\,g
}
first.depends = $(first) copy_header
export(first.depends)
export(copy_header.commands)
QMAKE_EXTRA_TARGETS += first copy_header
